import { App } from 'vue';

//这种全局引入组件的方式无效，使用uniapp的easycom

const COMS: Record<string, Module> = import.meta.globEager("./*/*.vue");



const install = (app: App): void => {
	Object.keys(COMS).forEach(async (key) => {
		const component = COMS[key].default;
		const name = component.name;
		app.component(name, component);
	})
}

export default {
	install
}